package org.bhf.service;

/**
 * Well known constants
 */
public class Constants
{
    /** ServiceName overlay state in JSON */
    public static final String  OVERLAY_STATE_PARAMETER         = "s";
    /** Component state version NUMBER_PATTERN */
    public static final String  COMPONENT_VERSION_PARAMETER     = "v";
    /** Invocation argument */
    public static final String  INVOCATION_ARGUMENT_PARAMETER   = "a";
    /** True if the URL looks like form data and needs translation to JSON */
    public static final String  TOKEN_PARAMETER                 = "t";
    /** This optional request parameter can be set to a JavaScript callback function. Typically used when invoking
     * cross origin services using dynamic <script> elements
     */
    public static final String  SUCCESS_CALLBACK_PARAMETER      = "success";
    /** This optional request parameter can be set to a JavaScript callback function. Typically used when invoking
     * cross origin services using dynamic <script> elements
     */
    public static final String  ERROR_CALLBACK_PARAMETER        = "failure";

    /** Request full state HTTp status code: 491 */
    public static final int     HTTP_STATUS_REQUEST_STATE       = 491;
    /** Use to distinguish a return of void vs. null for <code>ProcessView</code>s */
    public static final Object  VOID                            = new Object();
}